package com.smalluz.ad.modules.ks.api.impl;

import com.smalluz.ad.modules.common.enums.MediaApiUrl;
import com.smalluz.ad.modules.ks.api.KsReportService;
import com.smalluz.ad.modules.ks.api.KsService;
import com.smalluz.ad.modules.ks.bean.KsAdReportRequest;
import com.smalluz.ad.modules.ks.result.KsAdReportResult;

import lombok.RequiredArgsConstructor;
@RequiredArgsConstructor
public class KsReportServiceImpl implements KsReportService {
    private final KsService ksService;
    @Override
    public KsAdReportResult getAdReport(KsAdReportRequest request) {
        String resultContent = ksService.post(MediaApiUrl.KsReport.REPORT_AD_GET, request);
        return KsAdReportResult.fromJson(resultContent);
    }

}
